package ducktypes;

import duckbehaviors.flybehavior.FlyBehavior;
import duckbehaviors.quackbehavior.QuackBehavior;

public abstract class Duck {

  protected QuackBehavior quackBehavior;
  protected FlyBehavior flyBehavior;
  
  public void performQuack()
  {
    quackBehavior.quack();
  }
  public void performFly()
  {
    flyBehavior.fly();
  }
  
  public abstract String display();
}
